#ifndef _PHONEAUDCTRL_H_
#define _PHONEAUDCTRL_H_

#define WM_PHONE_VOLUME      (WM_USER+0X711)
#define WM_PHONE_AUDIO_STATE (WM_USER+0X712)


#ifdef __cplusplus__
extern "C" {
#endif 
    
    BOOL InitPhoneAudModule(HWND hParent);

    void UninitPhoneAudModule();
    
    INT GetPhoneVolume();

    void SetPhoneVolume(DWORD volume);

    BOOL GetPhoneMute();

    void MutePhone(BOOL bMute);

    INT GetVolumeMax();

    
    BOOL PhonePlaySoundFile(LPCTSTR filename, INT nBitrate, INT BitsSample);

    BOOL PhoneRecordWaveFile(LPCTSTR filename, INT nBitrate, INT BitsSample);

    void PhoneStopPlay();

    void PhoneStopRecord();
    
    
#ifdef __cplusplus__
}
#endif 

#endif /*_PHONEAUDCTRL_H_*/
